package com.ruoyi.record.service.impl;

import java.util.List;

import com.ruoyi.record.domain.AllotRecord;
import com.ruoyi.record.mapper.AllotRecordMapper;
import com.ruoyi.record.service.IAllotRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 调拨记录Service业务层处理
 * 
 * @author cy
 * @date 2024-11-05
 */
@Service
public class AllotRecordServiceImpl implements IAllotRecordService
{
    @Autowired
    private AllotRecordMapper allotRecordMapper;

    /**
     * 查询调拨记录
     * 
     * @param document 调拨记录主键
     * @return 调拨记录
     */
    @Override
    public AllotRecord selectAllotRecordByDocument(String document)
    {
        return allotRecordMapper.selectAllotRecordByDocument(document);
    }

    /**
     * 查询调拨记录列表
     * 
     * @param allotRecord 调拨记录
     * @return 调拨记录
     */
    @Override
    public List<AllotRecord> selectAllotRecordList(AllotRecord allotRecord)
    {
        return allotRecordMapper.selectAllotRecordList(allotRecord);
    }

    /**
     * 新增调拨记录
     * 
     * @param allotRecord 调拨记录
     * @return 结果
     */
    @Override
    public int insertAllotRecord(AllotRecord allotRecord)
    {
        return allotRecordMapper.insertAllotRecord(allotRecord);
    }

    /**
     * 修改调拨记录
     * 
     * @param allotRecord 调拨记录
     * @return 结果
     */
    @Override
    public int updateAllotRecord(AllotRecord allotRecord)
    {
        return allotRecordMapper.updateAllotRecord(allotRecord);
    }

    /**
     * 批量删除调拨记录
     * 
     * @param documents 需要删除的调拨记录主键
     * @return 结果
     */
    @Override
    public int deleteAllotRecordByDocuments(String[] documents)
    {
        return allotRecordMapper.deleteAllotRecordByDocuments(documents);
    }

    /**
     * 删除调拨记录信息
     * 
     * @param document 调拨记录主键
     * @return 结果
     */
    @Override
    public int deleteAllotRecordByDocument(String document)
    {
        return allotRecordMapper.deleteAllotRecordByDocument(document);
    }
}
